home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cbibcode.arc
/
CEIL.C
< prev
next >
Wrap
Text File
|
1991-08-05
|
308b
|
17 lines
/* ceil.c FUNCTION, FROM P. 202 OF TURBO C BIBLE */
#include<math.h>
#include<stdio.h>
main(int argc, char **argv)
{
double result;
if(argc < 2)
{
printf("Usage: %s <value>\n", argv[0]);
}
else
{
result = ceil(atof(argv[1]));
printf("ceil of %s = %f \n", argv[1], result);
}
}